package proyecto.modelo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the det_cartelera database table.
 * 
 */
@Entity
@Table(name="det_cartelera")
public class DetCartelera implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private DetCarteleraPK id;

    @Lob()
	private byte[] horario;

	@Column(name="tipo_presentacion")
	private String tipoPresentacion;

	//bi-directional many-to-one association to Cartelera
    @ManyToOne
	@JoinColumn(name="co_cartelera")
	private Cartelera cartelera;

	//bi-directional many-to-one association to Pelicula
    @ManyToOne
	@JoinColumn(name="co_pelicula")
	private Pelicula pelicula;

	//bi-directional many-to-one association to Sala
    @ManyToOne
	@JoinColumns({
		@JoinColumn(name="co_cine", referencedColumnName="co_cine"),
		@JoinColumn(name="co_sala", referencedColumnName="co_sala")
		})
	private Sala sala;

    public DetCartelera() {
    }

	public DetCarteleraPK getId() {
		return this.id;
	}

	public void setId(DetCarteleraPK id) {
		this.id = id;
	}
	
	public byte[] getHorario() {
		return this.horario;
	}

	public void setHorario(byte[] horario) {
		this.horario = horario;
	}

	public String getTipoPresentacion() {
		return this.tipoPresentacion;
	}

	public void setTipoPresentacion(String tipoPresentacion) {
		this.tipoPresentacion = tipoPresentacion;
	}

	public Cartelera getCartelera() {
		return this.cartelera;
	}

	public void setCartelera(Cartelera cartelera) {
		this.cartelera = cartelera;
	}
	
	public Pelicula getPelicula() {
		return this.pelicula;
	}

	public void setPelicula(Pelicula pelicula) {
		this.pelicula = pelicula;
	}
	
	public Sala getSala() {
		return this.sala;
	}

	public void setSala(Sala sala) {
		this.sala = sala;
	}
	
}